package logic;

/**
 *  class that holds user settings, used to lower memory usage
 *	because we don't create whole engine at start of application
 * @author Rekin
 *
 */
public class TempUserSettings {
	
	/**
	 * default constructor
	 */
	public TempUserSettings(){
		setDefaultSettings();
	}
	
	/**
	 * prepares the default settings
	 */
	public void setDefaultSettings(){
		playerNumer=2;
		touchscreenAvailable=true;
		playerName=LogicHelper.defaultPlayerName;
		gameType=LogicHelper.gameTypeSinglePlayer;
		soundLevel=5;
		startingMoney = 100;
	}
	
	/**
	 * @return gameType
	 */
	public int getGameType() {
		return gameType;
	}

	/**
	 * @param gameType
	 */
	public void setGameType(int gameType) {
		this.gameType = gameType;
	}

	/**
	 * @param playerNumer
	 */
	public void setPlayerNumer(int playerNumer) {
		this.playerNumer = playerNumer;
	}

	/**
	 * @return touchscreenAvailable
	 */
	public boolean isTouchscreenAvailable() {
		return touchscreenAvailable;
	}

	/**
	 * @param touchscreenAvailable
	 */
	public void setTouchscreenAvailable(boolean touchscreenAvailable) {
		this.touchscreenAvailable = touchscreenAvailable;
	}

	/**
	 * @return playerName
	 */
	public String getPlayerName() {
		return playerName;
	}

	/**
	 * @param playerName
	 */
	public void setPlayerName(String playerName) {
		this.playerName = playerName;
	}

	/**
	 * @return playerNumer
	 */
	public int getPlayerNumer() {
		return playerNumer;
	}
	
	/**
	 * @return soundLevel
	 */
	public int getSoundLevel() {
		return soundLevel;
	}

	/**
	 * @param soundLevel
	 */
	public void setSoundLevel(int soundLevel) {
		this.soundLevel = soundLevel;
	}
	
	/**
	 * @return startingMoney
	 */
	public int getStartingMoney() {
		return startingMoney;
	}

	/**
	 * @param startingMoney
	 */
	public void setStartingMoney(int startingMoney) {
		this.startingMoney = startingMoney;
	}

	private int playerNumer;
	private boolean touchscreenAvailable;
	private String playerName;
	private int gameType;
	private int soundLevel;
	private int startingMoney;
	
	
}
